<%-- 
    Document   : warehouse
    Created on : Jun 12, 2012, 4:29:24 PM
    Author     : ciummo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Magazzino</title>
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
    </head>
    <body>
        <%@ include file="../adminDialogBar.jspf" %>
        
        <div id="subMenu">
        
            <html:link href="Product.do?method=newProduct&idOrderProduct=0"><img src="/DGestWebServer/images/add.png" alt="Aggiungi Prodotto" height="50px" width="50px"/></html:link>

            
            
        </div>
        
            <br><br>
        <h1>Prodotti presenti nel Magazzino</h1>
        <br>
        
        <h2>Tutti i Prodotti</h2>

        <table class="objectList">
            <thead>
                <tr>
                    <th>Seriale</th>
                    <th>data produzione</th>
                    <th>stato</th>
                    <th>opzioni</th>

                </tr>
            </thead>

            <tbody>        
        
        <logic:iterate id="product" name="ProductActionForm" property="list" indexId="index" >
            <pg:item>
                <tr>
                    <td><bean:write name="product" property="serialeProdotto"></bean:write></td>
                    <td><bean:write name="product" property="dataProduzione"></bean:write></td>
                    <td><bean:write name="product" property="stato"></bean:write></td>
                    <td>
                    
                    <html:link href="Validate.do?method=validateProduct" paramId="serialeProdotto" paramName="product" paramProperty="serialeProdotto"><img src="/DGestWebServer/images/checkView.jpg" alt="Verifica" height="25px" width="25px"/></html:link>
                    <html:link href="Product.do?method=detailsProduct" paramId="serialeProdotto" paramName="product" paramProperty="serialeProdotto"><img src="/DGestWebServer/images/view.png" alt="Visualizza" height="25px" width="25px"/></html:link></td>
                </tr>    



            </pg:item>
        </logic:iterate>
        
        </table>
        
        
    </body>
</html>
